<template>
  <div class="container-table">
    <StaffFrom ref="addFrom"></StaffFrom>
  </div>
</template>

<script setup>
// import { provide } from 'vue'
import { useStore } from 'vuex'
import StaffFrom from '@/components/StaffFrom'
// import { computed } from '@vue/reactivity'
// 获取员工工号 staff_number
const store = useStore()
const { dispatch, commit } = store
const getStaffNumer = async () => {
  await dispatch('staff/getStaffNumer')
}
// const newNumber = computed(() => getters.staff_newNumber)
// provide('staffNumber', newNumber)
getStaffNumer()
commit('staff/SAVEADDORMOD', true)
</script>

<style lang="scss" scoped>
.container-table {
  display: flex;
  justify-content: center;
}
</style>
